package copyengine.dataLayer.rpc.moudle.response
{
	import org.puremvc.as3.interfaces.IFacade;

	public class CENotificationResponseModule implements ICERpcResponseModule
	{
		private var facade:IFacade;

		public function CENotificationResponseModule(_facade:IFacade)
		{
			facade = _facade;
		}

		public function sendRpcRespond(_gameLayerDataArray:Array):void
		{
			for (var i:int = 0; i < _gameLayerDataArray.length; i++)
			{
				var dataObj:Object = _gameLayerDataArray[i];
				var notificationName:String = dataObj["method"];
				facade.sendNotification(notificationName, dataObj);
			}
		}
	}
}